package com.zy.crud.mapper;

/**
 * Created by ly on 2018/2/6
 * describe：封装公共dao  另外所有基础方法都与代码生成工具对应
 */
public interface BaseMapper<T>   {

    int deleteByPrimaryKey(Integer id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);
}
